﻿<UserControl x:Class="Poet.Views.SearchOptionsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300">
    
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="..\Resources\Styles.xaml" />
                <ResourceDictionary Source="..\Resources\ControlTemplates.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    
    <Grid>
        <GroupBox Header="{Localizing SearchOptions}">
            <StackPanel>
                <StackPanel.Resources>
                    <Style TargetType="CheckBox">
                        <Setter Property="Margin" Value="3"/>
                    </Style>
                </StackPanel.Resources>
                <CheckBox IsChecked="{Binding MatchCase}" Content="{Localizing MatchCase}"/>
                <CheckBox IsChecked="{Binding MatchWholeWord}" Content="{Localizing MatchWholeWord}"/>
                <CheckBox IsChecked="{Binding UseRegularExpression}" Content="{Localizing UseRegularExpression}"/>
            </StackPanel>
        </GroupBox>
    </Grid>
</UserControl>
